Program
#include<stdio.h> int main() { int a[5]={10,20,30,40,50},i; for(i=0;i<5;i++) printf("%d\t",a[i]); return 0; }
Output
10 20 30 40 50
Program
#include<stdio.h> int main() { int a[5]={10,20,30,40,50},i; for(i=0;i<5;i++) printf("%d\t",a[i]); return 0; }
Output
10 20 30 40 50
Assignment Topic: Prospect and Challenges of E-Government in Bangladesh
Criteria
Send your soft copy assignment to bulbul2info@gmail.com by August 19, 2016.
Dear Students,
Good day!
I do believe you have learnt a lot of things about Structured Programming language (C). Now this is your turn to prove your efficiency and creativity. Create a program which will be counted as an assignment that must meet the following criteria:
Please feel free to contact me if you have further queries.
Dear Students,
Good day!
I do believe you have learnt a lot of things about OOP (C++). Now this is your turn to prove your efficiency and creativity. Create a program which will be counted as an assignment that must meet the following criteria:
Please feel free to contact me if you have further queries.
Dear Students,
Good day!
I do believe you have learnt a lot of things about HTML and CSS. Now this is your turn to create your personal web site which will be counted as an assignment. Ensure that the following criteria are included in your assignment:
Please feel free to contact me if you have further queries.
Program
#include <stdio.h> int main () { int a = 50, b = 100; if( a == b ) { printf("a is equal to b" ); } else if( a == 90 ) { printf("a is equal to 90" ); } else if( b == 60 ) { printf("b is equal to 60" ); } else { printf("a is not equal to b" ); } return 0; }
Output
a is not equal to b
Program:
#include<stdio.h> int main() { int marks; printf("Enter your marks:"); scanf("%d",&marks); if(marks>=40) { printf("You are a winner"); } else { printf("you are a loser"); } return 0; }
Output:
Enter your marks:35 You are a loser
Program:
#include<stdio.h> int main() { int marks; printf("Enter your marks:"); scanf("%d",&marks); if(marks>=80) { printf("You are a winner"); } return 0; }
Output:
Enter your marks:90 You are a winner
Syntax of if :
if (expression) { // statement(s) will execute if expression is true }
Syntax of if…else :
if (expression) { // statement(s) will execute if expression is true } else { // statement(s) will execute if expression is false }
Syntax of nested if…else :
if (expression1) { // statement(s) will execute if expression1 is true } else if(expression2) { // statement(s) will execute if expression1 is false and expression2 is true } else if (expression3) { // statement(s) will execute if expression1 and expression2 are false and expression3 is true } . . else { // statement(s) will execute if all expressions are false }