Important Program CPC Subject
Important Program CPC Subject
#include <stdio.h>
int main() {
int rows = 5; // Number of rows in the pattern
return 0;
}
3. Write a Program to print Fibonacci series up to the term entered by the user .
#include <stdio.h>
int main() {
int n, first = 0, second = 1, next;
return 0;
}
#include <stdio.h>
int main() {
int matrix[3][3];
return 0;
}
int main() {
char str1[50] = "Hello";
char str2[50] = "World";
char str3[100];
return 0;
}
6. Write a program in c by using a structure to store information of students i.e name .roll
number and Marks and also display it.
#include <stdio.h>
int main() {
// Declare an array of structures to store multiple students' information
struct Student students[3]; // Assuming we have 3 students
return 0;
}