Wednesday, November 26, 2014

C Programming for Beginners 18 - Arrays in C









1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>
#include <stdlib.h>

int main()
{
int MyNumberArray [6] = {20,30,60,50,55,30};

MyNumberArray[1]=45;

for(int i=0;i<6;i++)
{
printf("element[%d]=%d \n",i,MyNumberArray[i]);
}


}






















C Arrays Basics Explained with 13 Examples

C Programming/Arrays

C Programming Arrays

C Arrays with examples

Arrays in C ProgrammingSearches related to Arrays in C

arrays in c ppt

arrays in c pdf

pointers in c

strings in c

multidimensional arrays in c

2d arrays in c

string arrays in c

char arrays in c

Sunday, November 23, 2014

How to install the Windows 10 Technical Preview on Windows 8 / 8.1 Right...







Download Windows Technical Preview

http://windows.microsoft.com/en-us/windows/preview-iso



Download VirtualBox

https://www.virtualbox.org/wiki/Downloads







How to Install the Windows 10 Technical Preview Right Now

How to download and install the Windows 10 Technical

Windows 10 Technical Preview: ISO-Download von USB

Windows 10 Technical Preview (Beta) 64 Bit - Download

Windows 10 Technical Preview (32 Bit)

Windows 10 Technical Preview Demo , New Features







Download Windows Technical Preview

http://windows.microsoft.com/en-us/windows/preview-iso



Download VirtualBox

https://www.virtualbox.org/wiki/Downloads







How to Install the Windows 10 Technical Preview Right Now

How to download and install the Windows 10 Technical

Windows 10 Technical Preview: ISO-Download von USB

Windows 10 Technical Preview (Beta) 64 Bit - Download

Windows 10 Technical Preview (32 Bit)

Windows Technical Preview - Microsoft Windows

Windows 10 Technical Preview (Beta) 64 Bit

Windows 10 Technical Preview (32 Bit)

Wednesday, November 19, 2014

C Programming for Beginners 12 - do...while loop in C













1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <stdio.h>
#include <stdlib.h>
int main()
{
int i=0;

do
{
printf("Value of i= %d\n",i);
//i=i+1;
i++;
} while (i > 10);

printf("********************\n");

int j=0;
while (j > 10)
{
printf("Value of j= %d\n",j);
//j=i+1;
j++;
}

}




For, While and Do While Loops in C

C Programming while and do...while Loop

Do while loop

C Tutorial   for loop, while loop, break and continue

C do while loop in C programming with example

do-while loop

do-while Statement (C)

C Programming | do-while loop - C

Tuesday, November 18, 2014

C Programming for Beginners 11 - While loop in C









1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>
#include <stdlib.h>
int main()
{
int i=0;

while (i <= 10)
{
printf("Value of i= %d\n",i);
//i=i+1;
i++;
}

}














C Programming while and do...while Loop

For, While and Do While Loops in C

C Tutorial – for loop, while loop, break and continue

C: WHILE STATEMENT

C – while loop in C programming with example

C Programming Infinite While Loop

C Programming for Beginners 10 - Switch Statement in C











1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <stdio.h>
#include <stdlib.h>
int main()
{
int marks=75;

switch (marks)
{
case 97:
case 95:
case 90:
case 85:
printf("Excellent");
break;
case 75:
case 70:
printf("Very Good");
break;
case 60:
printf("good");
break;
case 40:
printf("Ok");
break;
default:
printf("Grade unavailable");
}
}










switch Statement (C)

C Programming switch...case Statement -

Switch Case in C and C++

C Tutorial – The if and switch statement

C switch case rules - C Programming

Wednesday, November 12, 2014

C Programming for Beginners 9 - The ternary (conditional) operator in C










 1
2
3
4
5
6
7
8
9
10
11
#include <stdio.h>
#include <stdlib.h>
int main()
{
///The ternary (conditional) operator in C
int a=25,b=20;
int c ;
///(/* logical expression goes here */) ? (/* if non-zero (true) */) : (/* if 0 (false) */)
c = (a > b) ? b : a;
printf("ans = %d",c);
}










ternary operator bash
how to use ternary operator in c
associativity of ternary operator in c
Verwandte Suchanfragen zu ternary operator
ternary operator java
ternary operator php
ternary operator c++
ternary operator ruby
ternary operator perl
ternary operator python
javascript ternary operator

Sunday, November 9, 2014

C Programming for Beginners 8 - if...else and Nested if...else stateme...











#include <stdio.h>
#include <stdlib.h>
int main()
{
int age;
printf("Please enter the age ");
scanf("%d",&age);
if (age > 18/* condition goes here */) {
/* if the condition is non-zero (true), this code will execute */
printf("The age is greater then 18 \n");
if(age < 21)
{
printf("The age is greater then 18 but less then 21");
}else{
printf("The age is greater then 18 but not less then 21");
}

} else if (age == 18)
{
printf("The age is equal to 18");
} else
{
printf("The age is not greater then or equal to 18");
}


}

C Programming for Beginners 7 - If Statements in C


















#include <stdio.h>
#include <stdlib.h>

int main()
{
int age;
printf("Please enter the age ");
scanf("%d",&age);
if (age > 18/* condition goes here */) {
/* if the condition is non-zero (true), this code will execute */
printf("The age is greater then 18");
}
if (age == 18/* condition goes here */) {
/* if the condition is non-zero (true), this code will execute */
printf("The age is equal to 18");
}
if (age < 18/* condition goes here */) {
/* if the condition is non-zero (true), this code will execute */
printf("The age is less then 18");
}
}





C Programming for Beginners 7 - If Statements in C





#include <stdio.h>
#include <stdlib.h>

int main()
{
int age;
printf("Please enter the age ");
scanf("%d",&age);
if (age > 18/* condition goes here */) {
/* if the condition is non-zero (true), this code will execute */
printf("The age is greater then 18");
}
if (age == 18/* condition goes here */) {
/* if the condition is non-zero (true), this code will execute */
printf("The age is equal to 18");
}
if (age < 18/* condition goes here */) {
/* if the condition is non-zero (true), this code will execute */
printf("The age is less then 18");
}
}





Tuesday, November 4, 2014

Module Chooser Using Javascript AND Apps Script

I had hoped that there might be a new Google Forms Add-on to do this, but no. I guess I'll have to have a go at doing it myself later.

Imagine you want your students to make a choice of four modules from a list of modules you're offering. To make the form easier to "not get wrong" it'd be good if when you chose module one, it disappeared from the following form items...

... like this.

The above is a hosted HTML on Google Drive ( because the Caja sanitation, or Chrome killed my Javascript ).

When a student chooses their preferred modules, the form is submitted to a regular doPost() method in a Google Spreadsheet's Apps Script like this...


function doPost(e) {
Logger.log("Hi there")
try{
//Get values from form
var email = Session.getActiveUser().getEmail()

var module_one = e.parameter.module_one
var module_two= e.parameter.module_two
var module_three = e.parameter.module_three
var module_four = e.parameter.module_four
add_students_selection(email,module_one,module_two,module_three,module_four )

var template = HtmlService.createTemplateFromFile('thank_you.html')
template.this_url = ScriptApp.getService().getUrl( )

return template.evaluate().setTitle("Thank You").setSandboxMode(HtmlService.SandboxMode.EMULATED)



}catch(e){
Logger.log(e)
var template = HtmlService.createTemplateFromFile('error.html');
template.this_url = ScriptApp.getService().getUrl( );
template.error_title = e
template.error_detail = e.stack
return template.evaluate().setTitle("Error").setSandboxMode(HtmlService.SandboxMode.EMULATED)
}

}

 

© 2013 Klick Dev. All rights resevered.

Back To Top